package com.geeguo.ebuilder.operation.business.system.operlog.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.geeguo.ebuilder.operation.base.database.entity.BaseCreateEntity;
import com.geeguo.ebuilder.operation.base.database.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@TableName(value = "sys_oper_log")
public class OperLogEntity extends BaseCreateEntity {

    @TableField(value = "title")
    private String title;

    @TableField(value = "log_type")
    private Integer logType;

    @TableField(value = "client_type")
    private Integer clientType;

    @TableField(value = "method")
    private String method;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "username")
    private String username;

    @TableField(value = "ip")
    private String ip;

    @TableField(value = "url")
    private String url;

    @TableField(value = "request_method")
    private String requestMethod;

    @TableField(value = "request_param")
    private String requestParam;

    @TableField(value = "json_result")
    private String jsonResult;

    @TableField(value = "elapsed_time")
    private Long elapsedTime;

    @TableField(value = "success")
    private Integer success;

    @TableField(value = "error_msg")
    private String errorMsg;
}